package com.itheima.day20.demo06;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public class demo10 {
    public static void main(String[] args) throws Exception {
        InputStreamReader isr =
                new InputStreamReader(new FileInputStream(new File("")), StandardCharsets.UTF_8);

        InputStreamReader isr2 =
                new InputStreamReader(new FileInputStream(new File("")),
                        Charset.forName("UTF-8"));

        InputStreamReader isr3 =
                new InputStreamReader(new FileInputStream(new File("")),
                        "UTF-8");
    }
}
